﻿@model Entities.Group

@{
    Layout = null;
}



<script type="text/javascript" language="javascript">
    function addUserAjaxDone(json) {
        DWZ.ajaxDone(json);
        if (json.statusCode == DWZ.statusCode.ok) {
            //重新载入当前navTab页面  
            navTabPageBreak();
            if ("closeCurrent" == json.callbackType) {
                setTimeout(function () { $.pdialog.closeCurrent(); }, 100);
            } else if ("forward" == json.callbackType) {
                dialog.reload(json.forwardUrl);
            }

        }
    }
</script>
<div class="pageContent">
    @using (Html.BeginForm("Edit", "MGroup", FormMethod.Post, new { @class = "pageForm required-validate", onsubmit = "return validateCallback(this,addUserAjaxDone);" }))
    { 
        <div class="pageFormContent" layouth="56">
            <p>
                <label style="width: 60px;">
                    组别名称：</label>
                @Html.TextBoxFor(u => u.Name, new { @class = "required", size = "30", alt = "请输入名称" })
            </p>
            <p>
                <label style="width: 60px;">
                    描述：</label>
                @Html.TextBoxFor(u => u.Description, new { size = "30", alt = "请输入描述" })
            </p>
            <p>
                <label style="width: 60px;">
                    是否可用：</label>
                @Html.CheckBoxFor(u => u.Enabled)
            </p>
            <p>
                <label style="width: 60px;">
                    备注：</label>
                @Html.TextAreaFor(u => u.Remark, new { size = "200", alt = "请输入备注" })
            </p>
        </div>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="submit">
                                保存</button></div>
                    </div>
                </li>
                <li>
                    <div class="button">
                        <div class="buttonContent">
                            <button type="button" class="close">
                                取消</button></div>
                    </div>
                </li>
            </ul>
        </div>

    }
</div>
